package com.example.itcompanyinterview.object;

import java.io.Serializable;

import com.example.itcompanyinterview.tools.ApplicationDefination;

public class Role implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int id;
	private String name;
	private String logoUrl;
	
	public Role() {
	}
	
	public Role(int id, String name, String url) {
		this.setId(id);
		this.setName(name);
		this.setLogoUrl(ApplicationDefination.Host + url);
	}
	
	public String getLogoUrl() {
		return logoUrl;
	}

	public void setLogoUrl(String logoUrl) {
		this.logoUrl = logoUrl;
	}

	public int getId(){
		return this.id;
	}
	
	public void setId(int id){
		this.id = id;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public String toString() {
		return this.name;
	}

}
